cmake_minimum_required(VERSION 3.0.2)
project(zlgcan)


find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  can_msgs
)






catkin_package(
  INCLUDE_DIRS include
  LIBRARIES zlgcan
  CATKIN_DEPENDS roscpp rospy std_msgs 
)

include_directories(
  include
  ${catkin_INCLUDE_DIRS} 
)
link_directories(
  ${catkin_LIB_DIRS} 
  lib
)


add_executable(zlgcan src/zlgcan.cpp)
target_link_libraries(zlgcan ${catkin_LIBRARIES} libusbcan.so)
add_dependencies(zlgcan ${catkin_EXPORTED_TARGETS})




